<?php
/* -----------------------------------------------------------------
 *                        Aveghe My Blog
 * -----------------------------------------------------------------
 * Aveghe My Blog: made your blog easy!
 * Copyright (C) 2008 Elia Contini
 * 
 * Aveghe My Blog is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Aveghe My Blog is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

require_once('aveghe/views/helpers/MainMenu.php');

$meta    = $this->head('meta'   , 'admin', $this->preferences);
$style   = $this->head('style'  , 'admin', $this->preferences);
$favicon = $this->head('favicon', 'admin', $this->preferences);
$rss     = $this->head('rss'    , 'admin', $this->preferences);

$baseURL = BASE_URL;

$siteTitle = '<h1><a href="'.$baseURL.'/" title="">'.stripcslashes($this->preferences['site_title'])."</a></h1>\n";

$report = '';
if(count($this->report) > 0)
	{
		$report = "\n<div id=\"report\">\n\t".stripslashes($this->report[0])."</div>\n";
	}
$helloLogout = $this->helloLogout($this->userInfo['user_name'], $baseURL);
$menu = $this->mainMenu(Aveghe_View_Helper_MainMenu::DOCUMENTS, $baseURL);

$content = <<<CONTENT

	<form id="newFolder" action="$baseURL/doc/save" method="post">
		<fieldset>
			<input type="hidden" id="fileType" name="fileType" value="d" />
			<legend>Crea una cartella</legend>
			
			<p class="borderTop">	
				<label for="docTitle">Nome</label>
				<input class="text" type="text" id="docTitle" name="docTitle" />
				
				<input class="submit" type="submit" value="Salva" />
			</p>
			
		</fieldset>
	</form>

CONTENT;


/*$content .= <<<MENU

	<div id="actions">
		<ul id="actionsList">
			<li><a href="" title="">Crea File</a></li>
			<li><a href="" title="">Crea Cartella</a></li>
		</ul>
	</div>

MENU;*/

include 'aveghe/themes/admin/'.$this->preferences['site_admin_theme'].'/template_admin.xhtml';
?>